//
//  InputAction.h
//  Monster_Martial_Arts_Version_0
//
//  Created by bk on 13/1/6.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#ifndef Monster_Martial_Arts_Version_0_InputAction_h
#define Monster_Martial_Arts_Version_0_InputAction_h

#include "InputDef.h"
#include "CCallBack.h"

using namespace MMA;

struct INPUT_DATA
{
    INPUT_ID    m_inputID;
    
    CCallBack*  m_pCallBackPtr;
};

class CInputAction
{
public:
    
    CInputAction();
    
    virtual ~CInputAction(){}
    
    INPUT_DATA*     GetInputMapping();
    
    bool            isTriggered(){return m_bTriggered;}
    
    void            UnTriggered(){m_bTriggered = false;}
    
    virtual void    HandlResult(void* data) = 0;
    
protected:
    
    INPUT_DATA*     m_Data;
    
    bool            m_bTriggered;
    
};



#endif
